package cn.cfoodc.sharding.service;

import cn.cfoodc.sharding.domain.Encryptor;
import org.apache.ibatis.annotations.Update;

import java.util.List;

public interface EncryptorService {

    int insert(Encryptor encryptor);

    List<Exception> selectAll();

    List<Exception> selectEncryptorAndArgs_1(String name ,String publicKey );

    Encryptor selectByPrimaryKey(Long id);

    int updateByPrimaryKey(Encryptor encryptor);

    int deleteByPrimaryKey(Long id , String name ,String publicKey );

    List<Exception> selectEncryptorAndArgs_2(String name, String pwd);
}
